using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;

namespace LogParser.DA
{
    public class WeaponModel
    {

        public WeaponModel( )
        {

        }

        // Get Top 5 Kills by a given weapon
        public static DA.DataObjects.WeaponStatsDS.WeaponsSelectKillTop5ByWeaponNameDataTable GetWeaponTop5( string weaponName )
        {
            DA.DataObjects.WeaponStatsDS.WeaponsSelectKillTop5ByWeaponNameDataTable weaponDT = new LogParser.DA.DataObjects.WeaponStatsDS.WeaponsSelectKillTop5ByWeaponNameDataTable();
            DA.DataObjects.WeaponStatsDSTableAdapters.WeaponsSelectKillTop5ByWeaponNameTableAdapter weaponTA = TableAdapters.WeaponsSelectKillTop5ByWeaponNameTableAdapter();

            weaponDT = weaponTA.GetData( weaponName );

            return weaponDT;
        }

        // Get Top 5 Killers by any melee weapon
        public static DA.DataObjects.WeaponStatsDS.WeaponsSelectKillTop5MeleeWeaponsDataTable GetMeleeWeaponTop5( )
        {
            DA.DataObjects.WeaponStatsDSTableAdapters.WeaponsSelectKillTop5MeleeWeaponsTableAdapter weaponTA = TableAdapters.WeaponsSelectKillTop5MeleeWeaponsTableAdapter();
            DA.DataObjects.WeaponStatsDS.WeaponsSelectKillTop5MeleeWeaponsDataTable weaponDT = weaponTA.GetData();

            return weaponDT;
        }

        public static DA.DataObjects.WeaponStatsDS.WeaponsSelectTop25StatsDataTable GetWeaponTop25Stats( int weaponId )
        {
            DA.DataObjects.WeaponStatsDSTableAdapters.WeaponsSelectTop25StatsTableAdapter ta = TableAdapters.WeaponsSelectTop25StatsTableAdapter();
            DA.DataObjects.WeaponStatsDS.WeaponsSelectTop25StatsDataTable dt = ta.WeaponsSelectTop25Stats( weaponId );

            return dt;

        }

        public static DA.DataObjects.WeaponStatsDS.WeaponsStatsSelectDataTable GetWeaponsStatsList( )
        {
            DA.DataObjects.WeaponStatsDSTableAdapters.WeaponsStatsSelectTableAdapter weaponTA = TableAdapters.WeaponsStatsSelectTableAdapter();
            DA.DataObjects.WeaponStatsDS.WeaponsStatsSelectDataTable weaponDT = weaponTA.WeaponsStatsSelect();

            return weaponDT;

        }


    }
}
